package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 余额对象 t_balance
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
public class TBalance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 余额ID */
    private Long bid;

    /** 所属账户 */
    @Excel(name = "所属账户")
    private Long ofAccount;

    /** 所属币种类型 */
    @Excel(name = "所属币种类型")
    private Long ofCurrency;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    public void setBid(Long bid) 
    {
        this.bid = bid;
    }

    public Long getBid() 
    {
        return bid;
    }
    public void setOfAccount(Long ofAccount) 
    {
        this.ofAccount = ofAccount;
    }

    public Long getOfAccount() 
    {
        return ofAccount;
    }
    public void setOfCurrency(Long ofCurrency) 
    {
        this.ofCurrency = ofCurrency;
    }

    public Long getOfCurrency() 
    {
        return ofCurrency;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    private String createtime;

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bid", getBid())
            .append("ofAccount", getOfAccount())
            .append("ofCurrency", getOfCurrency())
            .append("balance", getBalance())
            .toString();
    }
}
